package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsStreamShiftMapper;
import com.scau402.system.domain.WmsStreamShift;
import com.scau402.system.service.IWmsStreamShiftService;

/**
 * 直播排班班次Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsStreamShiftServiceImpl implements IWmsStreamShiftService 
{
    @Autowired
    private WmsStreamShiftMapper wmsStreamShiftMapper;

    /**
     * 查询直播排班班次
     * 
     * @param streamShift 直播排班班次主键
     * @return 直播排班班次
     */
    @Override
    public WmsStreamShift selectWmsStreamShiftByStreamShift(String streamShift)
    {
        return wmsStreamShiftMapper.selectWmsStreamShiftByStreamShift(streamShift);
    }

    /**
     * 查询直播排班班次列表
     * 
     * @param wmsStreamShift 直播排班班次
     * @return 直播排班班次
     */
    @Override
    public List<WmsStreamShift> selectWmsStreamShiftList(WmsStreamShift wmsStreamShift)
    {
        return wmsStreamShiftMapper.selectWmsStreamShiftList(wmsStreamShift);
    }

    /**
     * 新增直播排班班次
     * 
     * @param wmsStreamShift 直播排班班次
     * @return 结果
     */
    @Override
    public int insertWmsStreamShift(WmsStreamShift wmsStreamShift)
    {
        return wmsStreamShiftMapper.insertWmsStreamShift(wmsStreamShift);
    }

    /**
     * 修改直播排班班次
     * 
     * @param wmsStreamShift 直播排班班次
     * @return 结果
     */
    @Override
    public int updateWmsStreamShift(WmsStreamShift wmsStreamShift)
    {
        return wmsStreamShiftMapper.updateWmsStreamShift(wmsStreamShift);
    }

    /**
     * 批量删除直播排班班次
     * 
     * @param streamShifts 需要删除的直播排班班次主键
     * @return 结果
     */
    @Override
    public int deleteWmsStreamShiftByStreamShifts(String[] streamShifts)
    {
        return wmsStreamShiftMapper.deleteWmsStreamShiftByStreamShifts(streamShifts);
    }

    /**
     * 删除直播排班班次信息
     * 
     * @param streamShift 直播排班班次主键
     * @return 结果
     */
    @Override
    public int deleteWmsStreamShiftByStreamShift(String streamShift)
    {
        return wmsStreamShiftMapper.deleteWmsStreamShiftByStreamShift(streamShift);
    }
}
